<?php
namespace app\common\model;

use think\Model;

class SettlementBillModel extends Model {
    // 完整数据表名
    protected $table              = 'settlement_bill';
    //结算订单数据列表
    public static function withdrawal_cash_sel($where, $page_number){
        $settlement_bill = SettlementBillModel::where($where)->order('settlement_bill_generation_time desc')->paginate($page_number);
        if(!$settlement_bill){
            return false;
        }
        return $settlement_bill;
    }

    //添加结算订单数据
    public static function settlement_bill_add($data){
        $settlement_bill = SettlementBillModel::create($data);
        if(!$settlement_bill){
            return false;
        }
        return true;
    }


}